<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../static/layui/css/layui.css"  media="all">
    <link rel="stylesheet" href="../static/css/global.css"  media="all">
    <!--link rel="stylesheet"  href="https://heerey525.github.io/layui-v2.4.3/layui-v2.4.5/css/layui.css" media="all"-->
</head>
<body>

<div class="fly-header layui-bg-black">
    <div class="layui-container">
        <ul class="layui-nav fly-nav" style="float:right">
            <li class="layui-nav-item">
                <a href="javascript:;" th:text="${username}">hello，yhx</a>
            </li>
            <li class="layui-nav-item">
                <a th:href="@{/index}">问答</a>
            </li>
            <li class="layui-nav-item"><a th:href="@{/questionlist}">列表</a></li>
            <li class="layui-nav-item">
                <a th:href="@{/logout}">登出</a>
            </li>
        </ul>
    </div>
</div>
<div style="padding: 20px; background-color: #F2F2F2;">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-main">
            <div class="layui-card">
                <div class="layui-card-header" th:text="${question.question}">问题</div>
                <div class="layui-card-body" th:text="${question.answer}">答案</div>
            </div>
            </div>
        </div>
    </div>
</div>
</body>
</html>